<?php
// DB
define('DB_DRIVER', 'mysql');
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'root');
define('DB_PASSWORD', '@huydang1920@');
define('DB_DATABASE', 'book');
define('DB_PREFIX', '');
include('mysql.php');
include('simple_html_dom.php');
include('seo_url.php');
include('utf8.php');
$db = new MySQL(DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE);
include('model.php');
for($start = 1; $start <= 30955; $start++) {
	$data = getProduct($start);
	if($data) {
		$products = getProductByData($data);
		if($products) {
			foreach ($products as $product_id) {
				deleteProduct($product_id);				
			}
		}
		echo $start . '<br>';
	}
}
?>